<%@ page import="com.example.qsmx.QSMXValue" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: 86177
  Date: 2024/11/2
  Time: 20:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<main>
    <div class="div_main text-center">
        <% //调用获取的集合
            List<QSMXValue> qsmxValues = QSMXValue.getQSMXValue();%>
        <%for (QSMXValue qsmxValue : qsmxValues) {%>
        <div class="wenZhang">
            <div class="n">
                <a href="<%=request.getContextPath()%>/qsmx-show?id=<%=qsmxValue.getId()%>">
                    <img src="<%=qsmxValue.getCover()%>"
                         class="img-fluid rounded" alt="<%=qsmxValue.getCover()%>"
                         style="width: 150px; height: 100px; object-fit: cover;">
                </a>
            </div>
            <div class="Jianjie1">
                <a href="<%=request.getContextPath()%>/qsmx-show?id=<%=qsmxValue.getId()%>">
                    <div class="n1 qsmx-title"><%=qsmxValue.getTittle()%>
                    </div>
                </a>
                <a href="<%=request.getContextPath()%>/qsmx-show?id=<%=qsmxValue.getId()%>">
                    <div class="n1 qsmx-content"><%=qsmxValue.getContent()%>
                    </div>
                </a>
            </div>
            <div class="Jianjie2">
                <a href="<%=request.getContextPath()%>/qsmx-show?id=<%=qsmxValue.getId()%>">
                    <div class="n2"><%=qsmxValue.getValueUserAccount()%>
                    </div>
                </a>
                <a href="<%=request.getContextPath()%>/qsmx-show?id=<%=qsmxValue.getId()%>">
                    <div class="n2"><%=qsmxValue.getCreateTime()%>
                    </div>
                </a>
            </div>
        </div>
        <%}%>
    </div>
</main>